<template slot-scope="scope">
  <div class="box">
    <div class="dialog-box">
      <el-dialog
        title="忘记密码/更换密码"
        :visible.sync="dialogSwitch"
        :before-close="handleClose"
        :modal-append-to-body="true"
        :lock-scroll="false"
      >
        <div class="dialog-p">
          <div class="left">
            <p>验证方式：</p>
            <p>当前手机号：</p>
            <p>当前邮箱：</p>
            <p>验证码：</p>
            <p>输入新密码：</p>
            <p>确认新密码：</p>
          </div>
          <div class="right">
            <p>
              <el-radio v-model="radio" label="1">手机验证</el-radio>
              <el-radio v-model="radio" label="2">邮箱验证</el-radio>
            </p>
            <p>18237742511</p>
            <p>18237742511@163.com</p>
            <p>
              <el-input v-model="input" placeholder="请输入验证码"></el-input>
              <span class="ipt_verify">获取验证码</span>
            </p>
            <p>
              <el-input v-model="input" placeholder="请输入密码"></el-input>
            </p>
            <p>
              <el-input v-model="input" placeholder="请再次输入密码"></el-input>
            </p>
          </div>
        </div>

        <span slot="footer" class="dialog-footer">
          <el-button @click="handleClose">取 消</el-button>
          <el-button type="primary" @click="handleUnderstand">确 认</el-button>
        </span>
      </el-dialog>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    dialogSwitch: {},
    topName: {},
  },
  components: {},
  data() {
    return {
      radio: "1", // 单选
      value: "", // 搜索
      input: "",
    };
  },
  computed: {},
  created() {
    console.log(this.listarr);
  },
  methods: {
    handleClose() {
      this.$emit("handleClose", 3);
      //   this.dialogVisible = false;
    },
    handleUnderstand() {
      this.$emit("handleUnderstand", 3);
    },
  },
};
</script>

<style scoped lang="less">
.dialog-p {
  width: 100%;
  display: flex;
  margin-top: -10px;
  font-size: 15px;
  color: #101010;
  .left {
    width: 30%;
    p {
      height: 30px;
      font-size: 15px;
      font-weight: 400;
      line-height: 30px;
      margin-top: 10px;
    }
  }
  .right {
    width: 60%;
    p {
      height: 30px;
      line-height: 30px;
      margin-top: 10px;
      position: relative;
      /deep/span {
        // color: #101010 !important;
        font-size: 14px;
        font-weight: 600;
      }
      .ipt_verify {
        position: absolute;
        right: 20px;
        color: #3291f8;
        font-weight: 400;
      }
    }
  }
  /deep/.el-input__inner {
    height: 30px !important;
    font-size: 14px;
  }
}
::v-deep .el-dialog__wrapper {
  position: absolute !important;
  min-width: 200px;
}
::v-deep .v-modal {
  position: absolute !important;
  min-width: 200px;
}
/deep/.el-dialog {
  border-radius: 10px;
  background-color: FFFFFF;
  min-width: 400px;
  max-width: 600px;
  font-weight: 600;
}
</style>
